package d01_satic;

import java.util.Random;

public class Login {
    public static void main(String[] args) {
        //登录验证码
        String code = "";
        String data="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890";
        Random rand=new Random();
        for (int i = 0; i < 8; i++) {
            int index=rand.nextInt(data.length());
            char c=data.charAt(index);
            code+=c;
        }
        System.out.println(code);
    }
}
